%link
\begin{lstlisting}
sage: FF = FiniteField(p)
sage: a = FF(109)
sage: c = FF(1014452131230551128319928312434869768346)
sage: [ a^(n1*i) for i in range(2) ].index(c^n1)
1
sage: [ a^(n2*i) for i in range(3) ].index(c^n2)
2
sage: [ a^(n3*i) for i in range(5) ].index(c^n3)
4
sage: [ a^(n4*i) for i in range(37) ].index(c^n4)
29
sage: crt([1,2,4,29],[2,3,5,37])
29
\end{lstlisting}%link
